<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>菜单测试（state:unfinished）</title>
<script type="text/javascript" src="static/easyui/jquery.min.js"></script>
<script type="text/javascript" src="static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="static/easyui/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="static/easyui/themes/icon.css">
<link rel="stylesheet" href="static/easyui/themes/metro-admin/easyui.css">
<style type="text/css">

.kuai,.kuai>div{
	font-size:14px;
	text-align: center;
}
</style>
</head>
<body>
<script type="text/javascript">
	$(function(){
		 $('#qx_tree').tree({
			 checkbox:true,
			onlyLeafCheck:true,
		    url:'select-ppp'
		}); 
		
		
		$(".box").children(".kuai").children("div").hide();	
		$(".kuai").click(function(){
			$(this).next().each(function(){
				$(this).attr({"abbr":1});
			});
			if($(this).attr("abbr")==1){
				$(this).attr({"abbr":2});
				$(this).children("div").slideDown("slow");
				$(this).children("div").show();
			}else{
				$(this).attr({"abbr":1})
				$(this).children("div").slideUp("slow");
			}
		});
		$(".fun").click(function(){
			console.log($(this).attr("data-href"));
		});
	});
	
</script>
	<div class="box" style="width:150px;height:400px;padding-top:10px;background:#293F45;">
		<div class="kuai" abbr="1" style="overflow:auto;padding:10px;margin:4px auto;background:white;">哦哦
			<div class="fun" data-href="ljj" style="width:90%;height:30px;margin:2px auto;background:#A0C5E8;">不知</div>
			<div class="fun" data-href="l1" style="width:90%;height:30px;margin:2px auto;background:#A0C5E8;">小组</div>
		</div>
		<div class="kuai" abbr="1" style="overflow:auto;padding:10px;width:90%;margin:4px auto;background:white;">一
			<div class="fun" data-href="l2" style="width:90%;height:30px;margin:2px auto;background:#A0C5E8;">二</div>
			<div class="fun" data-href="l3" style="width:90%;height:30px;margin:2px auto;background:#A0C5E8;">三</div>
		</div>
	</div>
	
	
	
	<ul id="qx_tree" style="margin:7px auto;padding-top:20px;width:200px;height:340px;border:solid 1px;"></ul>
</body>
</html>